package ch7.例子3;

import java.util.Arrays;

public class Example7_3 {
	public static void main(String args[]) {
		char[] a = { 'A', 'B', 'C', 'D', 'E', 'F' }, b = { '1', '2', '3', '4', '5', '6' };
		int[] c = { -1, -2, -3, -4, -5, -6 }, d = { 10, 20, 30, 40, 50, 60 };
		System.arraycopy(a, 0, b, 0, a.length);
		System.arraycopy(c, 2, d, 2, c.length - 3);
		System.out.println("数组 a 的各个元素中的值:");
		System.out.println(Arrays.toString(a));
		System.out.println("数组 b 的各个元素中的值:");
		System.out.println(Arrays.toString(b));
		System.out.println("数组 c 的各个元素中的值:");
		System.out.println(Arrays.toString(c));
		System.out.println("数组 d 的各个元素中的值:");
		System.out.println(Arrays.toString(d));
	}
}
